package demo2protected;

import demo1protected.Base;

public class Drived extends Base {
    public void test(){
        System.out.println(super.a);
    }
    public static void main(String[] args) {
        Drived drived = new Drived();
        System.out.println(drived.a);


       // C c = new C();
        //System.out.println(c.a);//程序报错

    }
}
